//
//  WBNetWorkManager+Extension.swift
//  swift_gitHub
//
//  Created by hellohome on 2017/7/17.
//  Copyright © 2017年 MeiFuMeiJia. All rights reserved.
//

import Foundation

extension WBNetWorkManager{
    func stateList( completion: @escaping ((_ list:[String:AnyObject],_ isSuccess:Bool)->()))  {
    let urlStr = "http://www.baidu.com"
        let parameters = ["access_token":"123456"]
        request(URLString: urlStr, parameters: parameters as [String : AnyObject]) { (json, isSuccess) in
        print(json ?? 0)
            completion(json as! [String : AnyObject],true)
        }
    }
}
